package searchteam.client.beansMirrors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;

public class PersonMirror implements Serializable {

	private static final long serialVersionUID = 9135856252318147782L;
	
	private int id;
	private String name;
	private String firstname;
	private String phone;
	private String mail;
	private TeamMirror team;
	private TeamMirror ownedTeam;
	private Collection<PaperMirror> papers;
	
	public PersonMirror() {
		papers = new ArrayList<PaperMirror>();
	}
	
	public PersonMirror(String name, String firstname, String phone, String mail) {
		this.name = name;
		this.firstname = firstname;
		this.phone = phone;
		this.mail = mail;
		papers = new ArrayList<PaperMirror>();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public Collection<PaperMirror> getPapers() {
		return papers;
	}

	public void setPapers(Collection<PaperMirror> papers) {
		this.papers = papers;
	}

	public void addPaper(PaperMirror paper) {
		papers.add(paper);
	}

	public void removePaper(PaperMirror paper) {
		papers.remove(paper);
	}

	public TeamMirror getOwnedTeam() {
		return ownedTeam;
	}

	public void setOwnedTeam(TeamMirror team) {
		ownedTeam = team;
	}

	public TeamMirror getTeam() {
		return team;
	}

	public void setTeam(TeamMirror team) {
		this.team = team;
	}
	
}
